pxe: prepend fdtdir to DTB name irrespective of source
authorStephen Warren <[email protected]>
Wed, 12 Feb 2014 21:30:04 +0000 (14:30 -0700)
committerTom Rini <[email protected]>
Fri, 21 Feb 2014 16:06:13 +0000 (11:06 -0500)
commite22361af0758c7ebbff6fe375f805bc3697ce30f
tree071f5b862baaeba8ce2f76d45c7bb0973f54f626
parent102c051fccaf43bca4245d38519c9520ee0b4ff4
pxe: prepend fdtdir to DTB name irrespective of source

The directory name from an fdtdir directive in a PXE config file should
always be pre-pended to the DTB filename; it shouldn't matter whether
the DTB filename came from the $fdtfile environment variable, or whether
it was constructed dynamically from ${soc}-${board}.dtb. Fix the code to
always prepend the directory name.

Reported-by: Dennis Gilmore <[email protected]>
Fixes: c61d94d86035 ("pxe: implement fdtdir extlinux.conf tag")
Signed-off-by: Stephen Warren <[email protected]>
Reviewed-by: Dennis Gilmore <[email protected]>
Tested-by: Dennis Gilmore <[email protected]>
common/cmd_pxe.c